/**
 * @Date 2025/3/26 10:16
 * @Created by 衡盛永
 */

package cn.itcast.demo.mqconsumer.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class SpringRabbitListener {

    @RabbitListener(queues = "simple.queue")
    public void listenerSimpleQueue(String message) {
        System.out.println("消费者已经接收到消息：" + message);
    }
}
